////////////////////////////图片轮播/////////////////////////////////////////
var k=0;//保存下标
var timer;
function showPic(){
    var su=document.getElementById("pic");
    var imgs=su.getElementsByTagName("img");
    var lis=su.getElementsByTagName("li");
    for(var i=0;i<imgs.length;i++){
        if(i==k){
            imgs[i].className="shown";
            lis[i].style.backgroundColor="orange";
        }
        else {
            imgs[i].className="hidden";
            lis[i].style.backgroundColor="#CCC";
        }
    }
    if(k==imgs.length-1){
        k=0;
    }
    else {
        k++;
    }

}
//function startTimer(){
//    timer=setInterval("showPic()",2000);
//}
//function stopTimer(){
//    clearInterval(timer);
//}
function thisimg(a){
    k=a;
    showPic();
}
timer=setInterval("showPic()",2000);
